package com.ORM;

import java.sql.Timestamp;
import java.sql.Date;
import java.text.SimpleDateFormat;

/**
 * ReqMerchandiseInfo entity. @author MyEclipse Persistence Tools
 */

public class ReqMerchandiseInfo implements java.io.Serializable {

	// Fields

	private Integer merId;
	private BasMerCategory basMerCategory;
	private Integer companyId;
	private String merName;
	private Double price;
	private Double sprice;
	private String merModel;
	private String picture;
	private String merDesc;
	private String manufacturer;
	private Date startDate;
	private Date endDate;
	private Integer special;

	// Constructors

	/** default constructor */
	public ReqMerchandiseInfo() {
	}

	/** minimal constructor */
	public ReqMerchandiseInfo(BasMerCategory basMerCategory, Integer companyId,
			Double price, Double sprice) {
		this.basMerCategory = basMerCategory;
		this.companyId = companyId;
		this.price = price;
		this.sprice = sprice;
	}

	/** full constructor */
	public ReqMerchandiseInfo(BasMerCategory basMerCategory, Integer companyId,
			String merName, Double price, Double sprice, String merModel,
			String picture, String merDesc, String manufacturer,
			Date startDate, Date endDate, Integer special) {
		this.basMerCategory = basMerCategory;
		this.companyId = companyId;
		this.merName = merName;
		this.price = price;
		this.sprice = sprice;
		this.merModel = merModel;
		this.picture = picture;
		this.merDesc = merDesc;
		this.manufacturer = manufacturer;
		this.startDate = startDate;
		this.endDate = endDate;
		this.special = special;
	}

	// Property accessors

	public Integer getMerId() {
		return this.merId;
	}

	public void setMerId(Integer merId) {
		this.merId = merId;
	}

	public BasMerCategory getBasMerCategory() {
		return this.basMerCategory;
	}

	public void setBasMerCategory(BasMerCategory basMerCategory) {
		this.basMerCategory = basMerCategory;
	}

	public Integer getCompanyId() {
		return this.companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public String getMerName() {
		return this.merName;
	}

	public void setMerName(String merName) {
		this.merName = merName;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getSprice() {
		return this.sprice;
	}

	public void setSprice(Double sprice) {
		this.sprice = sprice;
	}

	public String getMerModel() {
		return this.merModel;
	}

	public void setMerModel(String merModel) {
		this.merModel = merModel;
	}

	public String getPicture() {
		return this.picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getMerDesc() {
		return this.merDesc;
	}

	public void setMerDesc(String merDesc) {
		this.merDesc = merDesc;
	}

	public String getManufacturer() {
		return this.manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Integer getSpecial() {
		return this.special;
	}

	public void setSpecial(Integer special) {
		this.special = special;
	}

}